﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ExtendedWindow.aspx.cs" Inherits="ClientBilling.ExtendedWindow" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="~/Intranet.css" rel="Stylesheet" type="text/css" />
    
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager runat="server" ID="ExtendedWindowScriptManager" ScriptMode="Auto"></asp:ScriptManager>
    <div class="extendedWindow">
        <asp:HiddenField runat="server" ID="ConversationIdField" />
        <div class="clientName"><asp:Label runat="server" ID="ClientLabel"></asp:Label></div>
        
        <asp:UpdatePanel runat="server" ID="CaseUpdatePanel">
            <ContentTemplate>
                <asp:Repeater runat="server" ID="CaseRepeater" OnItemDataBound="CaseRepeater_ItemDataBound">
                    <ItemTemplate>
                        <div class="extendedWindowCaseName">
                            <table>
                                <tr>
                                    <td>
                                        <asp:CheckBox runat="server" ID="AllocationCheckBox" OnCheckedChanged="CheckBox_CheckChanged" AutoPostBack="true" />
                                        <asp:TextBox runat="server" ID="AllocationBox" style="text-align: right;" Enabled="false" Columns="3" MaxLength="3" AutoPostBack="true" OnTextChanged="AllocationBox_TextChanged"></asp:TextBox>%
                                        <asp:Button runat="server" ID="MinusButton" OnClick="MinusButton_Click" Text="-" />
                                        <asp:Button runat="server" ID="PlusButton" OnClick="PlusButton_Click" Text="+" />
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="AllocationBox" Display="Dynamic">Please enter a number.</asp:RequiredFieldValidator>
                                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="AllocationBox" Type="Integer" Operator="DataTypeCheck" Display="Dynamic">Please enter a number.</asp:CompareValidator>
                                    </td>
                                    <td>
                                        <span style="margin-left: 5px;">
                                            <asp:Literal runat="server" ID="CaseLabel" Text='<%# DataBinder.Eval(Container.DataItem, "CaseName") %>'></asp:Literal>
                                        </span>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>             
                <asp:Label runat="server" ID="MessageLabel" CssClass="extendedWindowError"></asp:Label>
            
                <hr />
                <div class="extendedWindowClientNotes">
                    <asp:Literal runat="server" ID="ClientNotesLiteral"></asp:Literal>
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    </form>
</body>
</html>
